<template>
  <div id="page">
    <span class="page-num">
      <a href="##" class="disabled" @click="backPrepage">上一页</a>
      <a href="##" class="num-select" @click="getValue">1</a>
      <a href>2</a>
      <a href>3</a>
      <a href>4</a>
      <a href>5</a>
      <a href>6</a>
      <a href>7</a>
      <b>...</b>
      <a href="##" @click="backNext">下一页</a>
    </span>
    <span class="page-skib">
      <em>
        共
        <b>100</b>
        页&nbsp;&nbsp;到第
      </em>
      <input type="text" value="1" v-model="value"/>
      <em>页</em>
      <a href="##" @click="backNum">确定</a>
    </span>
  </div>
</template>
<script>
export default {
  name: "Pagations",
  data() {
    return {
        value:'1',

    };
  },
  methods: {
      backPrepage(){

      },
      getValue(){

      },
      backNum(){
          
      },
      backNext(){

      }
  }
};
</script>
<style lang="less" scoped>
#page {
  width: 100%;
  height: 38px;
  margin-top: 40px;
  position: relative;
  margin-left: 410px;
  .page-num {
      display: inline-block;
      margin-left: 300px;
    a {
       color: #333;
       background:#eee;
       border: 1px solid #ddd;
       padding: 5px 15px;
       margin-left: 5px;
    }
    .disabled{
        background: #fff;
        color:gray;
    }
    .num-select{
        color:red;
        background: white;
        border-color:#fff;
    }
    b{
        display: inline-block;
        margin-left: 5px;
        margin-right: 5px;
    }
  }
  .page-skib{
      input{
          width: 30px;
          text-align: center;
          margin-right: 5px;
      }
      a{
          padding: 5px 10px;
          background: #ddd;
          border:1px solid #ddd;
          margin-left: 10px;
      }
  }
}
</style>


